package com.example.narratejpa.service;

import com.example.narratejpa.entiy.Region;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

public interface RegionService {
    // 普通分页
    Page<Region> getPage(Integer pageNum, Integer pageLimit);
    //增加景区
    Region addRegion(Region region);
    //根据id删除景区
    void delRegionByID(Integer id);
    //根据id获取景区信息
    Region findRegionByID(Integer id);
    //更新景区信息
    Region updateRegion(Region region);
    //批量删除景区
    void batchDelectRegion(List<Integer> list);

}
